//
//  ConfigFile.swift
//  MoodDiary
//
//  Created by MoodDiary on 2020/11/24.
//


import UIKit

public let appWindow: UIWindow? = UIApplication.shared.delegate?.window ?? UIWindow()

public let textView_cache:String = "textView_cache"

public var screen_width: Double = Double(UIScreen.main.bounds.size.width)
public var screen_height: Double = Double(UIScreen.main.bounds.size.height)

public var isFullScreen: Bool = appWindow?.safeAreaInsets.bottom ?? 0 > 0 ? true : false
    
public var statusBar_height: Double = isFullScreen ? 44.0 : 20.0
public var navigationBar_height:Double = 44.0
public var tabBar_height: Double = isFullScreen ? (49.0 + 34.0) : 49.0
public var safeBottom_height: Double = isFullScreen ? 34.0 : 0
public var statusAndNav_height: Double = statusBar_height + navigationBar_height

public let rootViewController: UIViewController = appWindow?.rootViewController ?? UIViewController()

public var KUSERFeelingImagesArrName:String = "KUSERFeelingImagesArrName"
public var KUSERActiveImagesArrName:String = "KUSERActiveImagesArrName"
public var KUSERFeelingDeletedImagesArrName:String = "KUSERFeelingDeletedImagesArrName"
public var KUSERActiveDeletedImagesArrName:String = "KUSERActiveDeletedImagesArrName"

